<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="mixin.less" rel="stylesheet/less">
    <script src="less.min.js"></script>
    <script>
        function judgeRootFontSize(){
            var baseWindowWidth = 640;
            var baseFontSise = 30;
            var fontSize = (window.innerWidth / baseWindowWidth) * baseFontSise;
            document.documentElement.style.fontSize = fontSize + 'px';
        }
        judgeRootFontSize();
        window.onresize = judgeRootFontSize;
    </script>
    <title>Document</title>
</head>
<body>
    <div>wewe</div>
</body>
</html>